package org.example.service.Impl;

import org.example.domain.Crop;
import org.example.mapper.CropMapper;
import org.example.service.CropService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CropServiceImpl implements CropService {
    @Autowired
    CropMapper cropMapper;
    @Override
    public List<Crop> cropList() {
        return cropMapper.cropList();
    }

    @Override
    public void upByGoodsNO(String goodsNo) {
        cropMapper.upByGoodsNO(goodsNo);
    }
}
